From 56d4085f507c1e75dff9b0e81ad34cf607d216a1 Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Wed, 14 Feb 2007 12:37:13 +0000 Subject: [PATCH] Make libelf not fail on unknown elf notes. Signed-off-by: Gerd Hoffmann --- xen/common/libelf/libelf-dominfo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/common/libelf/libelf-dominfo.c b/xen/common/libelf/libelf-dominfo.c index 9d45b8ae21..e3fee4552a 100644 --- a/xen/common/libelf/libelf-dominfo.c +++ b/xen/common/libelf/libelf-dominfo.c @@ -107,9 +107,9 @@ int elf_xen_parse_note(struct elf_binary *elf, if ((type >= sizeof(note_desc) / sizeof(note_desc[0])) || (NULL == note_desc[type].name)) { - elf_err(elf, "%s: unknown xen elf note (0x%x)\n", + elf_msg(elf, "%s: unknown xen elf note (0x%x)\n", __FUNCTION__, type); - return -1; + return 0; } if (note_desc[type].str) -- 2.30.2